package com.wxiao.exam;

import com.wxiao.exam.pojo.MajorDO;
import com.wxiao.exam.pojo.vo.GradeVO;
import com.wxiao.exam.pojo.vo.MajorVO;

import java.util.List;

/**
 * <br/>
 * Created by wangxiao on 2019/07/07
 */
public interface MajorService {

	Result addMajor(MajorVO majorVO) throws Exception;

	Result updateMajor(MajorVO majorVO) throws Exception;
	
	Result findDetailMajor(MajorVO majorVO) throws Exception;
	
	PageBean<MajorDO> listMajor(MajorVO majorVO) throws Exception;

    Result listMajorPage(MajorVO majorVO) throws Exception;
	
	Result countMajor(MajorVO majorVO) throws Exception;
	
	Result deleteMajor(MajorVO majorVO) throws Exception;

    List<MajorDO> listAll();

	Result listMajorByGrade(GradeVO gradeVO);
}